package org.retabel.service.render;

import org.retabel.persistence.entity.document.SectionConfiguration;
import org.retabel.persistence.entity.report.RenderingEngineEnum;

/**
 * Specific splitter for {@linkplain RenderingEngineEnum}.
 * <p/>
 * <h3>Extra-Info</h3>
 * Created: 16:58 21.03.12
 *
 * @author Burt Parkers
 * @version 1.0
 */
public class RenderingEngineJobSplitter extends DocumentConfigurationSplitter<RenderingEngineEnum> {

    @Override
    public RenderingEngineEnum createNew(SectionConfiguration sectionConfiguration) throws Exception {
        return sectionConfiguration.getReportDesign().getReportDesignPackage().getRenderingEngine();
    }
}
